import java.util.Scanner;

public class KeyDemo05 {
    public static void main(String[] args){
        int[] arr={3,45,7,2};
        getMax(arr);

        Scanner scan=new Scanner(System.in);
    }

    public static void getMax(int[] arr) {
        int max=arr[0];
        for(int i=1;i<arr.length;i++){
            if(arr[i]>max){
                max=arr[i];
            }
        }
        System.out.println(max);
    }

    public static void getSum(int a, int b) {
    }
}
